package com.violet.domain.vo.app;

import com.violet.annotation.transition.TDateTimeFormat;
import com.violet.domain.vo.VO;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class AUserOrderVo implements VO {
    private Long waitPaidCount;      // 待支付订单数量
    private Long waitDeliveryCount;  // 待配送订单数量
    private Long waitReceivingCount; // 待收货订单数量
    private Long completedCount;     // 已完成订单数量

    private List<AUserOrderItem> items;

    @Data
    @Accessors(chain = true)
    public static class AUserOrderItem implements VO {
        @TDateTimeFormat
        private String orderTime;           // 支付时间
        @TDateTimeFormat
        private String deliveryTime;        // 送达时间
        private Double finalPrice;          // 实付金额
        private String status;
        private List<String> products;
    }
}
